home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d1 / bmenu54.arc / EXAMPLE2.BAT < prev    next >
DOS Batch File  |  1990-02-12  |  450b  |  26 lines

  1. echo off
  2. echo 
  3. echo  Standard batch file example, with user defined colors...
  4. echo 
  5. bmenu 10 40 -3 4 118 " Long Title " One Two Three Four
  6. if errorlevel 4 goto f
  7. if errorlevel 3 goto t
  8. if errorlevel 2 goto w
  9. if errorlevel 1 goto o
  10. if errorlevel 0 goto esc
  11. :f
  12.     echo Four was chosen
  13.     goto end
  14. :t    
  15.     echo Three was chosen
  16.     goto end
  17. :w    
  18.     echo Two was chosen
  19.     goto end
  20. :o    
  21.     echo One was chosen
  22.     goto end
  23. :esc
  24.     echo ESC hit
  25. :end
  26.